Optimal. Leaf size=224 \[ -\frac {2 (43 A+35 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{105 d \sqrt {a \sec (c+d x)+a}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {\sqrt {2} (A+C) \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.67, antiderivative size = 224, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.135, Rules used = {4087, 4022, 4013, 3808, 206} \[ -\frac {2 (43 A+35 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{105 d \sqrt {a \sec (c+d x)+a}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {\sqrt {2} (A+C) \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3808
Rule 4013
Rule 4022
Rule 4087
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx &=\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 \int \frac {-\frac {a A}{2}+\frac {1}{2} a (6 A+7 C) \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{7 a}\\ &=\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {4 \int \frac {\frac {1}{4} a^2 (31 A+35 C)-a^2 A \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{35 a^2}\\ &=\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {8 \int \frac {-\frac {1}{8} a^3 (43 A+35 C)+\frac {1}{4} a^3 (31 A+35 C) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx}{105 a^3}\\ &=\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (43 A+35 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}+(A+C) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx\\ &=\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (43 A+35 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}-\frac {(2 (A+C)) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}\\ &=\frac {\sqrt {2} (A+C) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{\sqrt {a} d}+\frac {2 A \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {2 A \sin (c+d x)}{35 d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A+35 C) \sin (c+d x)}{105 d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 (43 A+35 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 6.60, size = 573, normalized size = 2.56 \[ \frac {(A+C) \sin (c+d x) \cos ^4(c+d x) (\sec (c+d x)+1)^{3/2} \sqrt {\sec ^2(c+d x)-1} \left (\log \left (-3 \sec ^2(c+d x)-2 \sqrt {2} \sqrt {\sec (c+d x)+1} \sqrt {\sec ^2(c+d x)-1} \sqrt {\sec (c+d x)}-2 \sec (c+d x)+1\right )-\log \left (-3 \sec ^2(c+d x)+2 \sqrt {2} \sqrt {\sec (c+d x)+1} \sqrt {\sec ^2(c+d x)-1} \sqrt {\sec (c+d x)}-2 \sec (c+d x)+1\right )\right ) \left (A+C \sec ^2(c+d x)\right )}{d (\cos (c+d x)+1) \sqrt {2-2 \cos ^2(c+d x)} \sqrt {1-\cos ^2(c+d x)} \sqrt {a (\sec (c+d x)+1)} (A \cos (2 c+2 d x)+A+2 C)}+\frac {\sqrt {\sec (c+d x)+1} \sqrt {(\cos (c+d x)+1) \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \left (-\frac {2 (193 A+140 C) \sin (c) \cos (d x)}{105 d}+\frac {(113 A+70 C) \sin (2 c) \cos (2 d x)}{105 d}-\frac {2 (193 A+140 C) \cos (c) \sin (d x)}{105 d}+\frac {(113 A+70 C) \cos (2 c) \sin (2 d x)}{105 d}+\frac {8 \sec \left (\frac {c}{2}\right ) \sec \left (\frac {c}{2}+\frac {d x}{2}\right ) \left (46 A \sin \left (\frac {d x}{2}\right )+35 C \sin \left (\frac {d x}{2}\right )\right )}{105 d}+\frac {8 (46 A+35 C) \tan \left (\frac {c}{2}\right )}{105 d}-\frac {6 A \sin (3 c) \cos (3 d x)}{35 d}+\frac {A \sin (4 c) \cos (4 d x)}{14 d}-\frac {6 A \cos (3 c) \sin (3 d x)}{35 d}+\frac {A \cos (4 c) \sin (4 d x)}{14 d}\right )}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a (\sec (c+d x)+1)} (A \cos (2 c+2 d x)+A+2 C)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 406, normalized size = 1.81 \[ \left [\frac {\frac {105 \, \sqrt {2} {\left ({\left (A + C\right )} a \cos \left (d x + c\right ) + {\left (A + C\right )} a\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - \frac {2 \, \sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}} + \frac {4 \, {\left (15 \, A \cos \left (d x + c\right )^{4} - 3 \, A \cos \left (d x + c\right )^{3} + {\left (31 \, A + 35 \, C\right )} \cos \left (d x + c\right )^{2} - {\left (43 \, A + 35 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{210 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}, -\frac {105 \, \sqrt {2} {\left ({\left (A + C\right )} a \cos \left (d x + c\right ) + {\left (A + C\right )} a\right )} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {-\frac {1}{a}} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - \frac {2 \, {\left (15 \, A \cos \left (d x + c\right )^{4} - 3 \, A \cos \left (d x + c\right )^{3} + {\left (31 \, A + 35 \, C\right )} \cos \left (d x + c\right )^{2} - {\left (43 \, A + 35 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{105 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + A}{\sqrt {a \sec \left (d x + c\right ) + a} \sec \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 3.20, size = 216, normalized size = 0.96 \[ -\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (30 A \left (\cos ^{4}\left (d x +c \right )\right )+105 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, A \sin \left (d x +c \right )-36 A \left (\cos ^{3}\left (d x +c \right )\right )+105 C \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+68 A \left (\cos ^{2}\left (d x +c \right )\right )+70 C \left (\cos ^{2}\left (d x +c \right )\right )-148 A \cos \left (d x +c \right )-140 C \cos \left (d x +c \right )+86 A +70 C \right ) \left (\cos ^{4}\left (d x +c \right )\right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {7}{2}}}{105 d \sin \left (d x +c \right ) a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.78, size = 730, normalized size = 3.26 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________